// 首页相关接口
import type { ResHomeList } from '@/types/home'
import http from '@/utils/http'

export enum API {
  // 获取首页列表
  HOMELIST_URL = '/home/homeList'
}

/**
 * 获取首页列表
 * @param data 默认第1页，每页10条
 * @returns
 */
export const reqHomeList = (page = 1, size = 10) => {
  return http.get<any, ResHomeList>(API.HOMELIST_URL, {
    params: {
      page,
      size
    }
  })
}
